package com.bilibili.juc.CASTest;

/**
 * @author 小泽
 * @create 2022-09-22  16:42
 * 记得每天敲代码哦
 */

public class User {
       String userName;
       int    age;

       public String getUserName() {
              return userName;
       }

       public void setUserName(String userName) {
              this.userName = userName;
       }

       public int getAge() {
              return age;
       }

       public void setAge(int age) {
              this.age = age;
       }

       public User(String userName, int age) {
              this.userName = userName;
              this.age = age;
       }

       @Override
       public String toString() {
              return "User{" +
                      "userName='" + userName + '\'' +
                      ", age=" + age +
                      '}';
       }
}
